package cn.stu.projectsummit.blog.mapper;

import cn.stu.projectsummit.blog.pojo.dto.BlogQuery;
import cn.stu.projectsummit.blog.pojo.entity.Blog;
import cn.stu.projectsummit.blog.pojo.vo.BlogVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogMapper {

    Integer selectBlogCount(Long userId);
    List<BlogVO> selectBlog(BlogQuery blogQuery);

    void delete(Long blogId);

    void update(Blog blog);

    void insert(Blog blog);
}
